﻿#region Copyrigth and License
/*==============================================================================
 *  Copyright (c) cndotnet.org Corporation.  All rights reserved.
 * ===============================================================================
 * This code and information is provided "as is" without warranty of any kind,
 * either expressed or implied, including but not limited to the implied warranties
 * of merchantability and fitness for a particular purpose.
 * ===============================================================================
 * Licensed under the GNU General Public License (GPL) v2
 * http://www.cndotnet.org/ezsocio
 * ==============================================================================*/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace DusonFramework.ContactService.LiveID {
    /// <summary>
    /// Email是msn联系人信息中的一部分,主要包括:ID,EmailType,Address,IsIMEnabled,IsDefault
    /// </summary>
    [XmlNodeMapping(XmlNodeName = "Emails/Email")]
    [DataContract]
    public class Email {
        #region Fields

        #endregion

        #region Constructors

        #endregion

        #region Properties
        /// <summary>
        /// 编号
        /// </summary>
        [XmlNodeMapping(XmlNodeName = "ID")]
        [DataMember]
        public string ID {
            get;
            set;
        }
        
        /// <summary>
        /// 邮件类型
        /// </summary>
        [XmlNodeMapping(XmlNodeName = "EmailType")]
        [DataMember]
        public string EmailType {
            get;
            set;
        }
        /// <summary>
        /// 邮件地址
        /// </summary>
        [XmlNodeMapping(XmlNodeName = "Address")]
        [DataMember]
        public string Address {
            get;
            set;
        }
        /// <summary>
        /// 是否开通IM
        /// </summary>
        [XmlNodeMapping(XmlNodeName = "IsIMEnabled")]
        [DataMember]
        public bool IsIMEnabled {
            get;
            set;
        }
        /// <summary>
        /// 是否默认
        /// </summary>
        [XmlNodeMapping(XmlNodeName = "IsDefault")]
        [DataMember]
        public bool IsDefault {
            get;
            set;
        }
        #endregion

        #region Events

        #endregion
    }
}
